package homework.job4

import akka.actor.{ActorRef, ActorSystem, Props}

object ActorGame {

  val actorSystem =ActorSystem("ActorGame")
  def main(args: Array[String]): Unit = {
    val bActorRef: ActorRef =actorSystem.actorOf(Props[BActor],"bactor")
    val aActorRef: ActorRef =actorSystem.actorOf(Props(new AActor(bActorRef)))
    aActorRef ! "start"
  }
}
